<template>
	<view class="page-container back-white pall-l">
		<web-view :webview-styles="webviewStyles" :src="url"></web-view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				url: '', // 链接
				webviewStyles: {  // 进度条样式
					progress: {
						color: '#1BBBAF'
					}
				},
			};
		},
		onLoad(options) {
			this.url = options.url
			if (options.title) {
				uni.setNavigationBarTitle({
					title: options.title
				})
			}
		}
	}
</script>

<style lang="scss">

</style>
